<%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2021/3/20
  Time: 10:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
 <%
     request.setCharacterEncoding("utf-8");
     String name=request.getParameter("uname");
     String pass=request.getParameter("upass");
     if(name.startsWith("java72")&&pass.equals("123456")){
         session.setAttribute("USER_LOGIN",name);
         response.sendRedirect("welcome.jsp");
     }else{
         out.print("错误的用户名和密码<a href='login.jsp'>重来</a>");
     }
 %>
</body>
</html>
